/*
 * @Description:
 * @Author: your name
 * @version:
 * @Date: 2024-06-24 09:10:00
 * @LastEditors: your name
 * @LastEditTime: 2024-06-24 09:37:29
 */
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import { fileURLToPath } from "url"
import cesium from "vite-plugin-cesium"
import path from "path"

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue(), cesium()],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", import.meta.url)),
    },
  },
  optimizeDeps: {
    include: ["@turf/turf", "cesium"],
  },
  server: {
    port: 5173,
    host: "0.0.0.0",
  },
  build: {
    rollupOptions: {
      output: {
        manualChunks: {
          cesium: ["cesium"],
        },
      },
    },
  },
})
